include('shared.lua')

function ENT:Draw()
	
	if ValidEntity( self.Entity:GetParent() ) then
	
		local parent = self:GetDTEntity(1);
		local BoneIndex = self:GetDTInt(1);
		local BonePos, BoneAng = parent:GetBonePosition( BoneIndex );
		local OffSetPos, OffSetAng = GAME.OffSets[self:GetDTInt(2)](BonePos, BoneAng);
		
		self:SetPos( OffSetPos );
		self:SetAngles( OffSetAng );
		
	end
	
	if LocalPlayer() != self.Entity:GetParent() then
	
		//return;
		
	end
	
	self.Entity:DrawModel();
	
end




